import React from 'react'
import { useNavigate, useParams, useLocation } from 'react-router-dom'

export default function Login() {
  // 接收路由参数. params是一个对象
  const params = useParams()
  console.log(params)

  // 接收state数据
  const location = useLocation()
  console.log(location.state)
  return <h1>Login,</h1>
}
